/*
 * 明令行命令
 * @author li.xiaoxi
 * @date 2016-12-15
 */
var help = require('./help'),
    init = require('./init'),
    dev = require('./dev'),
    beta = require('./beta'),
    build = require('./build'),
    create = require('./create');

module.exports = function(){
  var cmd = process.argv[2];
  
  switch(cmd) {
    case 'help':
        help();
        break;

    case 'init':
        init();
        break;

    case 'dev':
        dev();
        break;

    case 'beta':
        beta();
        break;

    case 'build':
        build();
        break;

    case 'create': 
        create();
        break;

    default:
       help();
       break;
  }

}
